package cn.wzy.exception.code;

/**
 * 整个系统中错误枚举
 */
public enum ErrorCode {
    CODE_SUCCEE(200L,"操作成功！"),
    ERROR_CODE_TENANT_EXSIT(400000001L,"该租户已经存在!请直接登陆使用!"),
    ERROR_CODE_TENANT_ADMIN_EXSIT(400000002L,"该管理员已经存在!请直接登陆直接添加租户!"),
    ERROR_CODE_TENANT_ONSALE_EXSIT(400000003L,"存在上架的物品!"),
    ERROR_CODE_TENANT_OFFSALE_EXSIT(400000004L,"存在没有上架的物品!"),
    ERROR_CODE_400(400L,"传入的数据不正确!请修改后重试"),
    ERROR_CODE_500(500L,"系统繁忙!请联系管理员!");
    private Long code;
    private String message;

    ErrorCode(Long code, String message) {
        this.code = code;
        this.message = message;
    }

    ErrorCode() {
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
